home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_oth
/
mawk10
/
install
< prev
next >
Wrap
Text File
|
1991-10-05
|
2KB
|
54 lines
how to install mawk on Unix like OS
--------------------
STEP 0: Read the file UCONFIG. If your system is there or
something close enough you only need run
build_mawk [CC=your_cc] your_system
else
how to install on a new system
------------------------------
STEP 1:
You need to link or copy a .h file in mawk/config, that describes your
configuration, to the mawk directory and name it config.h.
First look at the file mawk/config/generic.h. This file describes the
most common situations. If it describes your machine and system, then
use it. If not, you need to make a .h for your system. You only need
to make defines that describe how you differ from the description in
generic.h. The other .h's in config should serve as sufficient
examples. Also look at template.h
STEP2:
In the mawk directory, examine the Makefile and set the user settable
macros as appropriate. In most cases this will mean using the default.
STEP3:
Run make. If mawk successfully compiles, two tests will be run on mawk.
The first, in the shell script test/mawk_test, will see if mawk is
running correctly under normal conditions and the second, test/fpe_test,
will produce floating point exceptions to see if mawk handles things
like division by zero correctly.
Failing the first test probably means your source files are corrupted.
Failing the second means adjustments need to be made to floating point
definitions in your config.h.
If you make a new config.h or add a new machine to an existing config.h,
send me the new or cdiffs for the old. If things just won't work, send
me the config.h and the error messages and I'll try to figure out what's
wrong.
Mike Brennan
brennan@boeing.com
24048 146 PL SE
Kent WA 98042